/**
 * 作者:hzq
 * 文件说明:
 * Creeated by hzq on 2018/7/9
 *
 */
import filter from './filter'
import validator from './validator'
import util from './util'
import dateFormat from './date'

const allTool = {
    filter, validator, util, dateFormat
};
const install = Vue => {
    if (install.installed) return;
    install.installed = true;
    Object.defineProperties(Vue.prototype, {
        $tool: {
            get() {
                return allTool
            }
        }
    })
};
export default {install}